{php include pubTemplate("header")}
<div class="container">
<div class="row">



    <div class="col-md-3">
        <div class="my_left">

            {php include pubTemplate("my")}

        </div>
    </div>


    <div class="col-md-9">
        <div class="card">
            <div class="card-body">

                {template menu}


<div class="usermsg">
<ul>
{loop $arrMessage $key $item}
<li {if $item[userid] == $TS_USER[userid]}class="mysend"{/if}>
{if $item[userid]==$TS_USER[userid]}<span style="color:#006efe;">{$item[user][username]} {php echo date('Y-m-d H:i:s',$item[addtime])}</span>{else}<span style="color:#42b475;">{$item[user][username]} {php echo date('Y-m-d H:i:s',$item[addtime])}</span>{/if}
<br />
{$item[content]}
</li>
{/loop}
</ul>
</div>

<hr>

<div class="sendbox">
    <p>和<span style="color:#0066cc;">{$strTouser[username]}</span>进行及时消息通话中</p>
    <p><textarea class="form-control" id="boxcontent"></textarea> </p>
    <p class="mt-1">
    <span id="sendbutton" style="display:block;"><a class="btn btn-sm btn-info" href="javascript:void('0');" onclick="window.parent.sendmsg('{$TS_USER[userid]}','{$strTouser[userid]}');">发送</a></span>
    <span id="loading" style="display:none;">消息送达中<img src="{SITE_URL}public/images/loading.gif" alt="Loading..." /></span>
    </p>
</div>


</div>
</div>
</div>



</div>
</div>

{php include pubTemplate("footer")}